﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="kartrisPromotionsData" targetNamespace="http://tempuri.org/kartrisPromotionsData.xsd" xmlns:mstns="http://tempuri.org/kartrisPromotionsData.xsd" xmlns="http://tempuri.org/kartrisPromotionsData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="KartrisSQLConnection" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="KartrisSQLConnection (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.KartrisSQLConnection.ConnectionString" Provider="System.Data.SqlClient" />
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="kartrisSQLConnection" IsAppSettingsProperty="true" Modifier="Assembly" Name="kartrisSQLConnection (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Kartris.My.MySettings.GlobalReference.Default.kartrisSQLConnection" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PromotionsTblAdptr" GeneratorDataComponentClassName="PromotionsTblAdptr" Name="Promotions" UserDataComponentName="PromotionsTblAdptr">
            <MainSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.spKartrisPromotions_Get" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisPromotions_Delete</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_PROM_ID" Precision="5" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="PROM_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisPromotions_Add</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@PROM_ID" Precision="5" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="PROM_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@PROM_StartDate" Precision="16" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="PROM_StartDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@PROM_EndDate" Precision="16" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="PROM_EndDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@PROM_Live" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumn="PROM_Live" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@PROM_OrderByValue" Precision="5" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="PROM_OrderByValue" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@PROM_MaxQuantity" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumn="PROM_MaxQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisPromotions_Get</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisPromotions_Update</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@PROM_ID" Precision="5" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="PROM_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@PROM_StartDate" Precision="16" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="PROM_StartDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@PROM_EndDate" Precision="16" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="PROM_EndDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@PROM_Live" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumn="PROM_Live" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@PROM_OrderByValue" Precision="5" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="PROM_OrderByValue" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@PROM_MaxQuantity" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumn="PROM_MaxQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_PROM_ID" Precision="5" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="PROM_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PROM_ID" DataSetColumn="PROM_ID" />
              <Mapping SourceColumn="PROM_StartDate" DataSetColumn="PROM_StartDate" />
              <Mapping SourceColumn="PROM_EndDate" DataSetColumn="PROM_EndDate" />
              <Mapping SourceColumn="PROM_Live" DataSetColumn="PROM_Live" />
              <Mapping SourceColumn="PROM_OrderByValue" DataSetColumn="PROM_OrderByValue" />
              <Mapping SourceColumn="PROM_MaxQuantity" DataSetColumn="PROM_MaxQuantity" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.[_spKartrisPromotions_GetAllDetails]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="_GetAllPromotions" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="_GetAllPromotions" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="_GetAllPromotions" UserSourceName="_GetAllPromotions">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisPromotions_GetAllDetails]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.[_spKartrisPromotions_GetByID]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="_GetByID" GetMethodModifier="Public" GetMethodName="_GetByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="_GetByID" UserSourceName="_GetByID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisPromotions_GetByID]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PROM_ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.[_spKartrisPromotions_Get]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="_GetData" GetMethodModifier="Public" GetMethodName="_GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="_GetData" UserSourceName="_GetData">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisPromotions_Get]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.spKartrisPromotions_GetAllDetails" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetAllPromotions" GeneratorSourceName="FillAllPromotions" GetMethodModifier="Public" GetMethodName="GetAllPromotions" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetAllPromotions" UserSourceName="GetAllPromotions">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisPromotions_GetAllDetails</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="tinyint" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@NowOffset" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CP_PromotionID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.spKartrisPromotions_GetByProductID" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetByProductID" GeneratorSourceName="FillByProductID" GetMethodModifier="Public" GetMethodName="GetByProductID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByProductID" UserSourceName="GetByProductID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisPromotions_GetByProductID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@P_ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="tinyint" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@NowOffset" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CP_PromotionID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PromotionStringsTblAdptr" GeneratorDataComponentClassName="PromotionStringsTblAdptr" Name="PromotionStrings" UserDataComponentName="PromotionStringsTblAdptr">
            <MainSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.[_spKartrisPromotionStrings_GetByType]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="false" GeneratorGetMethodName="_GetByType" GetMethodModifier="Public" GetMethodName="_GetByType" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="_GetByType" UserSourceName="_GetByType">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisPromotionStrings_GetByType]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PartNo" Precision="0" ProviderType="Char" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PS_ID" DataSetColumn="PS_ID" />
              <Mapping SourceColumn="PS_PartNo" DataSetColumn="PS_PartNo" />
              <Mapping SourceColumn="PS_Type" DataSetColumn="PS_Type" />
              <Mapping SourceColumn="PS_Item" DataSetColumn="PS_Item" />
              <Mapping SourceColumn="PS_Text" DataSetColumn="PS_Text" />
              <Mapping SourceColumn="PS_Order" DataSetColumn="PS_Order" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.[_spKartrisPromotionStrings_GetByID]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="_GetByID" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="_GetByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="_GetByID" UserSourceName="_GetByID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisPromotionStrings_GetByID]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@PS_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PromotionPartsTblAdptr" GeneratorDataComponentClassName="PromotionPartsTblAdptr" Name="PromotionParts" UserDataComponentName="PromotionPartsTblAdptr">
            <MainSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.[_spKartrisPromotionParts_GetByPartsPromotionID]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="false" GeneratorGetMethodName="_GetByPartsPromotionID" GetMethodModifier="Public" GetMethodName="_GetByPartsPromotionID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="_GetByPartsPromotionID" UserSourceName="_GetByPartsPromotionID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisPromotionParts_GetByPartsPromotionID]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="@PartNo" Precision="0" ProviderType="Char" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PromotionID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PROM_ID" DataSetColumn="PROM_ID" />
              <Mapping SourceColumn="PS_ID" DataSetColumn="PS_ID" />
              <Mapping SourceColumn="PS_PartNo" DataSetColumn="PS_PartNo" />
              <Mapping SourceColumn="PS_Text" DataSetColumn="PS_Text" />
              <Mapping SourceColumn="PP_ItemID" DataSetColumn="PP_ItemID" />
              <Mapping SourceColumn="PP_Value" DataSetColumn="PP_Value" />
              <Mapping SourceColumn="PS_Item" DataSetColumn="PS_Item" />
              <Mapping SourceColumn="PS_Type" DataSetColumn="PS_Type" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.[_spKartrisPromotionParts_GetByPromotionID]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="_GetByPromotionID" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="_GetByPromotionID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="_GetByPromotionID" UserSourceName="_GetByPromotionID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisPromotionParts_GetByPromotionID]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PromotionID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="kartrisPromotionsData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msdata:EnforceConstraints="False" msprop:Generator_DataSetName="kartrisPromotionsData" msprop:Generator_UserDSName="kartrisPromotionsData">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Promotions" msprop:Generator_UserTableName="Promotions" msprop:Generator_RowEvArgName="PromotionsRowChangeEvent" msprop:Generator_TableVarName="tablePromotions" msprop:Generator_TablePropName="Promotions" msprop:Generator_RowDeletingName="PromotionsRowDeleting" msprop:Generator_RowChangingName="PromotionsRowChanging" msprop:Generator_RowDeletedName="PromotionsRowDeleted" msprop:Generator_RowEvHandlerName="PromotionsRowChangeEventHandler" msprop:Generator_TableClassName="PromotionsDataTable" msprop:Generator_RowChangedName="PromotionsRowChanged" msprop:Generator_RowClassName="PromotionsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PROM_ID" msprop:Generator_ColumnVarNameInTable="columnPROM_ID" msprop:Generator_ColumnPropNameInRow="PROM_ID" msprop:Generator_ColumnPropNameInTable="PROM_IDColumn" msprop:Generator_UserColumnName="PROM_ID" type="xs:short" minOccurs="0" />
              <xs:element name="PROM_StartDate" msprop:Generator_ColumnVarNameInTable="columnPROM_StartDate" msprop:Generator_ColumnPropNameInRow="PROM_StartDate" msprop:Generator_ColumnPropNameInTable="PROM_StartDateColumn" msprop:Generator_UserColumnName="PROM_StartDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="PROM_EndDate" msprop:Generator_ColumnVarNameInTable="columnPROM_EndDate" msprop:Generator_ColumnPropNameInRow="PROM_EndDate" msprop:Generator_ColumnPropNameInTable="PROM_EndDateColumn" msprop:Generator_UserColumnName="PROM_EndDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="PROM_Live" msprop:Generator_ColumnVarNameInTable="columnPROM_Live" msprop:Generator_ColumnPropNameInRow="PROM_Live" msprop:Generator_ColumnPropNameInTable="PROM_LiveColumn" msprop:Generator_UserColumnName="PROM_Live" type="xs:boolean" minOccurs="0" />
              <xs:element name="PROM_OrderByValue" msprop:Generator_ColumnVarNameInTable="columnPROM_OrderByValue" msprop:Generator_ColumnPropNameInRow="PROM_OrderByValue" msprop:Generator_ColumnPropNameInTable="PROM_OrderByValueColumn" msprop:Generator_UserColumnName="PROM_OrderByValue" type="xs:short" minOccurs="0" />
              <xs:element name="PROM_MaxQuantity" msprop:Generator_ColumnVarNameInTable="columnPROM_MaxQuantity" msprop:Generator_ColumnPropNameInRow="PROM_MaxQuantity" msprop:Generator_ColumnPropNameInTable="PROM_MaxQuantityColumn" msprop:Generator_UserColumnName="PROM_MaxQuantity" type="xs:unsignedByte" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PromotionStrings" msprop:Generator_UserTableName="PromotionStrings" msprop:Generator_RowEvArgName="PromotionStringsRowChangeEvent" msprop:Generator_TableVarName="tablePromotionStrings" msprop:Generator_TablePropName="PromotionStrings" msprop:Generator_RowDeletingName="PromotionStringsRowDeleting" msprop:Generator_RowChangingName="PromotionStringsRowChanging" msprop:Generator_RowDeletedName="PromotionStringsRowDeleted" msprop:Generator_RowEvHandlerName="PromotionStringsRowChangeEventHandler" msprop:Generator_TableClassName="PromotionStringsDataTable" msprop:Generator_RowChangedName="PromotionStringsRowChanged" msprop:Generator_RowClassName="PromotionStringsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PS_ID" msprop:Generator_ColumnVarNameInTable="columnPS_ID" msprop:Generator_ColumnPropNameInRow="PS_ID" msprop:Generator_ColumnPropNameInTable="PS_IDColumn" msprop:Generator_UserColumnName="PS_ID" type="xs:unsignedByte" />
              <xs:element name="PS_PartNo" msprop:Generator_ColumnVarNameInTable="columnPS_PartNo" msprop:Generator_ColumnPropNameInRow="PS_PartNo" msprop:Generator_ColumnPropNameInTable="PS_PartNoColumn" msprop:Generator_UserColumnName="PS_PartNo" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PS_Type" msprop:Generator_ColumnVarNameInTable="columnPS_Type" msprop:Generator_ColumnPropNameInRow="PS_Type" msprop:Generator_ColumnPropNameInTable="PS_TypeColumn" msprop:Generator_UserColumnName="PS_Type" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PS_Item" msprop:Generator_ColumnVarNameInTable="columnPS_Item" msprop:Generator_ColumnPropNameInRow="PS_Item" msprop:Generator_ColumnPropNameInTable="PS_ItemColumn" msprop:Generator_UserColumnName="PS_Item" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PS_Text" msprop:Generator_ColumnVarNameInTable="columnPS_Text" msprop:Generator_ColumnPropNameInRow="PS_Text" msprop:Generator_ColumnPropNameInTable="PS_TextColumn" msprop:Generator_UserColumnName="PS_Text" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PS_Order" msprop:Generator_ColumnVarNameInTable="columnPS_Order" msprop:Generator_ColumnPropNameInRow="PS_Order" msprop:Generator_ColumnPropNameInTable="PS_OrderColumn" msprop:Generator_UserColumnName="PS_Order" type="xs:unsignedByte" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PromotionParts" msprop:Generator_UserTableName="PromotionParts" msprop:Generator_RowEvArgName="PromotionPartsRowChangeEvent" msprop:Generator_TableVarName="tablePromotionParts" msprop:Generator_TablePropName="PromotionParts" msprop:Generator_RowDeletingName="PromotionPartsRowDeleting" msprop:Generator_RowChangingName="PromotionPartsRowChanging" msprop:Generator_RowDeletedName="PromotionPartsRowDeleted" msprop:Generator_RowEvHandlerName="PromotionPartsRowChangeEventHandler" msprop:Generator_TableClassName="PromotionPartsDataTable" msprop:Generator_RowChangedName="PromotionPartsRowChanged" msprop:Generator_RowClassName="PromotionPartsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PROM_ID" msprop:Generator_ColumnVarNameInTable="columnPROM_ID" msprop:Generator_ColumnPropNameInRow="PROM_ID" msprop:Generator_ColumnPropNameInTable="PROM_IDColumn" msprop:Generator_UserColumnName="PROM_ID" type="xs:int" />
              <xs:element name="PS_ID" msprop:Generator_ColumnVarNameInTable="columnPS_ID" msprop:Generator_ColumnPropNameInRow="PS_ID" msprop:Generator_ColumnPropNameInTable="PS_IDColumn" msprop:Generator_UserColumnName="PS_ID" type="xs:unsignedByte" />
              <xs:element name="PS_PartNo" msprop:Generator_ColumnVarNameInTable="columnPS_PartNo" msprop:Generator_ColumnPropNameInRow="PS_PartNo" msprop:Generator_ColumnPropNameInTable="PS_PartNoColumn" msprop:Generator_UserColumnName="PS_PartNo" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PS_Text" msprop:Generator_ColumnVarNameInTable="columnPS_Text" msprop:Generator_ColumnPropNameInRow="PS_Text" msprop:Generator_ColumnPropNameInTable="PS_TextColumn" msprop:Generator_UserColumnName="PS_Text" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PP_ItemID" msprop:Generator_ColumnVarNameInTable="columnPP_ItemID" msprop:Generator_ColumnPropNameInRow="PP_ItemID" msprop:Generator_ColumnPropNameInTable="PP_ItemIDColumn" msprop:Generator_UserColumnName="PP_ItemID" type="xs:int" />
              <xs:element name="PP_Value" msprop:Generator_ColumnVarNameInTable="columnPP_Value" msprop:Generator_ColumnPropNameInRow="PP_Value" msprop:Generator_ColumnPropNameInTable="PP_ValueColumn" msprop:Generator_UserColumnName="PP_Value" type="xs:decimal" minOccurs="0" />
              <xs:element name="PS_Item" msprop:Generator_ColumnVarNameInTable="columnPS_Item" msprop:Generator_ColumnPropNameInRow="PS_Item" msprop:Generator_ColumnPropNameInTable="PS_ItemColumn" msprop:Generator_UserColumnName="PS_Item" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PS_Type" msprop:Generator_ColumnVarNameInTable="columnPS_Type" msprop:Generator_ColumnPropNameInRow="PS_Type" msprop:Generator_ColumnPropNameInTable="PS_TypeColumn" msprop:Generator_UserColumnName="PS_Type" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>